//-------------------------------------------------------------------------
/**
   File:   Ip6.h

   Descr.: - todo -

   Author: Stefan Leihkauf
   Date:   21.06.2014
*/
//-------------------------------------------------------------------------
#ifndef _IP6_H
#define _IP6_H
#include "common/types/typedef.h"

namespace cb { namespace common { namespace net {

struct Ip6
{
    union
    {
        struct
        {
            ushort s0; // prefix
            ushort s1;
            ushort s2;
            ushort s3;
        }prefix;

        struct
        {
            ushort s4; // interface identifier
            ushort s5;
        }interface;

        struct
        {
            uchar c0;
            uchar c1;
            uchar c2;
            uchar c3;
        }ip4;
    };

};

}}} // namespace 

#endif //!defined _IP6_H